package com.boil.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 基础控制器。
 *
 * @author ChenYong
 * @date 2016-09-21
 */
public abstract class BaseController {
    /**
     * 日志
     */
    protected static Logger log = LoggerFactory.getLogger(BaseController.class);
    /**
     * ServletContext 实例（服务器上下文）
     */
    @Autowired
    protected ServletContext application;
    /**
     * HttpServletRequest 实例
     */
    @Autowired
    protected HttpServletRequest request;
    /**
     * HttpServletResponse 实例
     */
    @Autowired
    protected HttpServletResponse response;
}